<template>
  <div>
    <div class="search-pannel">
      <el-form class="search-form" ref="searchForm" label-position="top" :model="searchData">
        <el-col :span="6">
          <el-form-item label="创建时间" prop="startTime">
            <el-date-picker v-model="searchData.startTime" type="year" value-format="yyyy"></el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="18">
          <div class="button-list">
            <el-button type="primary" @click="onSearch">搜 索</el-button>
            <el-button @click="reset">重 置</el-button>
          </div>
        </el-col>
      </el-form>
    </div>
    <page-table
        ref="pageTable"
        showIndex
        @currentChange="currentChange"
        @sizeChange="sizeChange"
        @sortChange="sortChange"
        :loading="loading"
        :data="data"
        :total="count"
        :page="pageIndex"
        :pageSize="pageSize"
        :showPagination="false"
    >
      <el-table-column prop="name" show-overflow-tooltip label="房屋标题"></el-table-column>
      <el-table-column prop="sum" show-overflow-tooltip label="总计"></el-table-column>
    </page-table>
  </div>
</template>

<script>
import { initTable } from '@/mixins'
import { _getList } from './store'

export default {
  name: 'statisticalHouse',
  mixins: [initTable],
  data() {
    return {
      searchData: {
        startTime: ''
      },
      initFunc: _getList
    }
  }
}
</script>

<style scoped>

</style>
